package ooday04;

import javax.naming.Name;

public abstract class Animal {
    public Animal() {
    }

    int age;
    public String name;
    String color;

    Animal(int age,String name,String color){
        this.age=age;
        this.name=name;
        this.color=color;
    }
     void drink(){
        System.out.println("animal喝水.."+name+"\t"+age+"\t"+color);
    }
    static void staFunc(){

        System.out.println("静态方法");
    }
   protected abstract void eat();



}
